package com.nengchuan.kbms.dfs.entity.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 文件和标签属性的关联表DTO
 * </p>
 *
 * @author zengshuai
 * @since 2020-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value= "DataFileTagAttrDTO对象", description="文件和标签属性关联表DTO")
public class DataFileTagAttrDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键",position = 10)
    private Long id;

    @NotEmpty(message = "文件id不能为空")
    @ApiModelProperty(value = "文件id",position = 20)
    private Long fileId;

    @NotEmpty(message = "属性名称不能为空")
    @Size(max = 40,message = "属性名称长度不能大于40个字符")
    @ApiModelProperty(value = "属性名称", position = 30)
    private String attrName;

    @Size(max = 255,message = "属性默认值长度不能大于255个字符")
    @ApiModelProperty(value = "属性值", position = 40)
    private String attrValue;

    @ApiModelProperty(value = "排序", hidden = true)
    @JsonIgnore
    private Integer sortNo;


}
